/*
███████╗██╗   ██╗ ██████╗██╗  ██╗
██╔════╝██║   ██║██╔════╝██║ ██╔╝
█████╗  ██║   ██║██║     █████╔╝
██╔══╝  ██║   ██║██║     ██╔═██╗
██║     ╚██████╔╝╚██████╗██║  ██╗
╚═╝      ╚═════╝  ╚═════╝╚═╝  ╚═╝
*/
package common.JavaBean;

import java.math.BigDecimal;

/**
 * EX_User 仅映射 user 表真实列
 * 字段：id, username, password, money, permission, phone, address, email, description
 */
public class EX_User {

    private int id;
    private String username;
    private String password;   // 32 位 MD5
    private BigDecimal money;  // 冗余余额，由钱包触发器同步
    private int permission;    // 0 用户 / 1 管理员
    private String phone;
    private String address;
    private String email;
    private String description;

    public EX_User() {}

    public EX_User(int id, String username, String password, BigDecimal money,
                   int permission, String phone, String address, String email, String description) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.money = money;
        this.permission = permission;
        this.phone = phone;
        this.address = address;
        this.email = email;
        this.description = description;
    }

    /* —— Getter & Setter —— */
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }

    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public BigDecimal getMoney() { return money; }
    public void setMoney(BigDecimal money) { this.money = money; }

    public int getPermission() { return permission; }
    public void setPermission(int permission) { this.permission = permission; }

    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }

    public String getAddress() { return address; }
    public void setAddress(String address) { this.address = address; }

    public String getEmail() { return email; }
    public void setEmail(String email) { this.email = email; }

    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
}